// 基类
class Base {
  pageNum = 1
  pageSize = 4
  data = []
  hasMoreData = true
  // 重置当前状态,用于下拉刷新
  reset() {
    this.pageNum = 1
    this.pageSize = 4
    this.data = []
    this.hasMoreData = true
    // 返回当前对象实例，下次调用时可以链式调用
    return this
  }
}
export default Base